export default {
  /**
   * 统计管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 区域点位统计
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {array}   createTime            时间
   *
   */
  "POST /statistics/point/pointCountByDistrict": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        list: [
          {
            districtId: "001",
            districtName: "杭州",
            originalPointNum: "12",
            increasePointNum: "15",
            nowPointNum: "15",
            HDPointNum:"22",
            HD210PointNum:"22",
            totlaltNum:"122",
          },
          {
            districtId: "002",
            districtName: "杭州",
            originalPointNum: "12",
            increasePointNum: "15",
            nowPointNum: "15",
            HDPointNum:"22",
            HD210PointNum:"22",
            totlaltNum:"122",
          }
        ]
      }
    });
  },


  /**
   * 故障类型统计
   * @param  {array}   createTime            时间
   */
  "POST /statistics/repair/repairTypeStatistics": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        simulationFault:[{
          faultType:"01",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"02",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"03",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"04",
          repairTimes:35,
          proportion:0.14,
        }],
        HDFault: [{
          faultType:"01",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"02",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"03",
          repairTimes:35,
          proportion:0.14,
        },{
          faultType:"04",
          repairTimes:35,
          proportion:0.14,
        }],
      }
    });
  },



  /**
   * 故障修复统计
   * @param  {array}   createTime            时间
   *
   */
  "POST /statistics/repair/repairDoneCount": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
         list:[{
           faultType:"01",
           lastMonth:60,
           thisMonth:24,
           with24Hours:12,
           with6Hours:10,
           repairRate:0.14,
         },{
           deviceType:"02",
           lastMonth:60,
           thisMonth:24,
           with24Hours:12,
           with6Hours:10,
           repairRate:0.14,
         },{
           deviceType:"03",
           lastMonth:60,
           thisMonth:24,
           with24Hours:12,
           with6Hours:10,
           repairRate:0.14,
         }]
      }
    });
  },


  /**
   * 超时修复统计
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {array}   createTime            时间
   */
  "POST /statistics/repair/overTimeRepairInfo": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            repairId: "001",
            districtName: "杭州",
            pointCode: "12",
            pointName: "具体点位名称",
            faultType:"01",
            overtimeReason:"未修复原因",
            progress:"完成",
            remark:"备注",
          },
          {
            repairId: "002",
            districtName: "杭州",
            pointCode: "12",
            pointName: "具体点位名称",
            faultType:"02",
            overtimeReason:"未修复原因",
            progress:"验收",
            remark:"备注",
          }
        ]
      }
    });
  },


  /**
   * 点位养护统计
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {array}   createTime            时间
   *
   */
  "POST /statistics/maintain": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            districtId: "001",
            districtName: "杭州",
            pointCode: "12",
            pointName: "具体点位名称",
            changeDev:"设备1、设备2",
            repairResult:"已养护",
            lastMaintainTime:1515554892000,
          },
          {
            districtId: "002",
            districtName: "杭州",
            pointCode: "12",
            pointName: "具体点位名称",
            changeDev:"设备1、设备2",
            repairResult:"未养护",
            lastMaintainTime:1515554892000,
          }
        ]
      }
    });
  },


};
